//
//  HYBDPanFileModel.h
//  HYBDPanFileModel
//  Created by 张水 on 2023/09/19.
//  Copyright © 2023年 张水. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MJExtension.h" 
@class HYBDPanFileModelList;
@class HYBDPanFileModelListThumb;
@class HYBDPanFileModelNam;

typedef NS_ENUM(NSUInteger, BDPanFileType) {
    BDPanFileTypeUnknown = 0,      // 未知
    BDPanFileTypeVideo = 1,        // 视频
    BDPanFileTypeAudio = 2,        // 音频
    BDPanFileTypePhoto = 3,        // 图片
    BDPanFileTypeDocument = 4,     // 文档
    BDPanFileTypeIAPP = 5,         // 应用
    BDPanFileTypeOther = 6,        // 其它
    BDPanFileTypeSeed = 7,         // 种子
    BDPanFileTypeALL = 8,          //全部类型
};

@interface HYBDPanFileModel : NSObject

/** <#errno#>*/
@property (nonatomic, copy) NSString *ERRNO;

/** <#list#>*/
@property (nonatomic, strong) NSArray<HYBDPanFileModelList *> *list;

/** <#names#>*/
@property (nonatomic, strong) HYBDPanFileModelNam *names;

/** <#errmsg#>*/
@property (nonatomic, copy) NSString *errmsg;

/** <#request_id#>*/
@property (nonatomic, copy) NSString *request_id;


+ (instancetype)modelWithJson:(id)json;

@end


@interface HYBDPanFileModelList : NSObject

@property (nonatomic, strong) RACSubject *fileMetaSubJect;
/** <#category#>*/
@property (nonatomic, assign) NSInteger category;

/** <#local_mtime#>*/
@property (nonatomic, copy) NSString *local_mtime;

/** <#orientation#>*/
@property (nonatomic, copy) NSString *orientation;

/** <#oper_id#>*/
@property (nonatomic, copy) NSString *oper_id;

/** <#thumbs#>*/
@property (nonatomic, strong) HYBDPanFileModelListThumb *thumbs;

/** <#filename#>*/
@property (nonatomic, copy) NSString *filename;

@property (nonatomic, copy) NSString *server_filename;
/** <#width#>*/
@property (nonatomic, copy) NSString *width;

/** <#path#>*/
@property (nonatomic, copy) NSString *path;

/** <#local_ctime#>*/
@property (nonatomic, copy) NSString *local_ctime;

/** 是否为目录，0 文件、1 目录*/
@property (nonatomic, copy) NSString *isdir;

/** <#date_taken#>*/
@property (nonatomic, copy) NSString *date_taken;

/** <#server_ctime#>*/
@property (nonatomic, copy) NSString *server_ctime;

/** <#dlink#>*/
@property (nonatomic, copy) NSString *dlink;

@property (nonatomic, copy) NSString *height;

/** <#fs_id#>*/
@property (nonatomic, copy) NSString *fs_id;

/** <#duration#>*/
@property (nonatomic, copy) NSString *duration;

/** <#md5#>*/
@property (nonatomic, copy) NSString *md5;

/** <#server_mtime#>*/
@property (nonatomic, copy) NSString *server_mtime;

/** <#size#>*/
@property (nonatomic, copy) NSString *size;

/** 视频封面*/
@property (nonatomic, strong) UIImage *videoImage;

@end


@interface HYBDPanFileModelListThumb : NSObject

/** <#url3#>*/
@property (nonatomic, copy) NSString *url3;

/** <#icon#>*/
@property (nonatomic, copy) NSString *icon;

/** <#url1#>*/
@property (nonatomic, copy) NSString *url1;

/** <#url4#>*/
@property (nonatomic, copy) NSString *url4;

/** <#url2#>*/
@property (nonatomic, copy) NSString *url2;

@end


@interface HYBDPanFileModelNam : NSObject

@end

